package com.jy.api.healthreord.dto.yl.guahao;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Getter
@Setter
public class GuaHaoJLDto {

    @ApiModelProperty("医疗机构代码")
    private String yiliaojgdm;

    @ApiModelProperty("院区id")
    private String yuanquid;

    @ApiModelProperty("挂号流水号")
    private String guahaolsh;

    @ApiModelProperty("院区名称")
    private String yuanqumc;

    @ApiModelProperty("门急诊/住院标志")
    private String menjizzybz;

    @ApiModelProperty("病人id")
    private String bingrenid;

    @ApiModelProperty("卡类型")
    private String kaleix;

    @ApiModelProperty("卡号")
    private String kahao;

    @ApiModelProperty("证件类型")
    private String zhengjianlx;

    @ApiModelProperty("证件号码")
    private String zhengjianhm;

    @ApiModelProperty("姓名")
    private String xingming;

    @ApiModelProperty("性别代码")
    private Integer xingbiedm;

    @ApiModelProperty("性别名称")
    private String xingbiemc;

    @ApiModelProperty("出生日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime chushengrq;

    @ApiModelProperty("科室代码")
    private String keshidm;

    @ApiModelProperty("科室名称")
    private String keshimc;

    @ApiModelProperty("医生代码")
    private String yishengdm;

    @ApiModelProperty("医生姓名")
    private String yishengmc;

    @ApiModelProperty("医生身份证号")
    private String yishengsfzh;

    @ApiModelProperty("挂号类别")
    private String guahaolb;

    @ApiModelProperty("挂号方式")
    private Integer guohaofs;

    @ApiModelProperty("是否预约")
    private Integer shifouyy;

    @ApiModelProperty("预约流水号")
    private String yuyuelsh;

    @ApiModelProperty("号源日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime haoyuanrq;

    @ApiModelProperty("号源时间范围")
    private String haoyuansjfw;

    @ApiModelProperty("排队序号")
    private String paiduixh;

    @ApiModelProperty("退号标志")
    private Integer tuihaobz;

    @ApiModelProperty("挂号操作时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime guahaoczsj;

    @ApiModelProperty("退号操作时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime tuihaoczsj;

    @ApiModelProperty("挂号费")
    private BigDecimal guohaofei;

    @ApiModelProperty("诊疗费")
    private BigDecimal zhenliaofei;

    @ApiModelProperty("其他费")
    private BigDecimal qitafei;


    @ApiModelProperty("业务数据生成时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime shujuscsj;


    @ApiModelProperty("保险类型")
    private String baoxianlx;


    @ApiModelProperty("作废标志")
    private String zuofeibz;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime gengxinsj;

    @ApiModelProperty("ID")
    @JSONField(serializeUsing = ToStringSerializer.class)
    private Long id;

    @ApiModelProperty("APPID")
    private String appid;

    @ApiModelProperty("首次上传时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime chuangjiansj;

    @ApiModelProperty("最后更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime xiugaisj;

    @ApiModelProperty("医疗机构名称")
    private String yiliaojgmc;

    @ApiModelProperty("病人信息表的主键id，没有时默认为0")
    private String patientId;
}
